package o;

import android.app.Activity;
import android.content.Context;
import androidx.annotation.NonNull;
import com.huawei.appgallery.downloadengine.api.SessionDownloadTask;
import java.util.ArrayList;
import java.util.List;

public class dpi {
    private static List<Class> ˏ = new ArrayList();

    public static boolean ˏ(Context context) {
        return !doo.ʻ(context);
    }

    public static boolean ˋ(SessionDownloadTask sessionDownloadTask) {
        int ˌ = sessionDownloadTask.ˌ();
        return sessionDownloadTask.ʽ() && (ˌ == 8 || ˌ == 11);
    }

    public static void ˎ(@NonNull Class cls) {
        if (!ˏ.contains(cls)) {
            ˏ.add(cls);
        }
    }

    public static boolean ˊ(@NonNull Activity activity) {
        for (Class isAssignableFrom : ˏ) {
            if (activity.getClass().isAssignableFrom(isAssignableFrom)) {
                return true;
            }
        }
        return false;
    }
}
